import { IsInt, IsString, IsOptional } from 'class-validator';

export class CreateDiaryDto {
  // @IsString()
  // readonly userid: string;
  @IsString()
  readonly title: string;
  @IsString()
  readonly diarybillid: string;
  @IsString()
  readonly content: string;

  @IsOptional()
  @IsString()
  readonly imagelist?: string;

  @IsOptional()
  @IsString()
  readonly weathertype?: string;
}


export class CreateDiaryBillDto {
  @IsString()
  readonly title: string;
  @IsString()
  readonly desc: string;
  @IsString()
  readonly showid: string;
  @IsString()
  readonly showlogo: string;
}

export class BindDiaryDto {
  @IsString()
  readonly diarybillid: string;
  @IsString()
  readonly bindbill: string;
}


export class FindDiaryDto {
  // @IsString()
  // readonly userid: string;
  readonly diaryid: string;
}

export class UpdateDiaryDto {
  // @IsString()
  // readonly userid: string;
  @IsString()
  readonly title: string;
  @IsString()
  readonly diaryid: string;
  @IsString()
  readonly content: string;

  @IsOptional()
  @IsString()
  readonly imagelist?: string;
  @IsOptional()
  @IsString()
  readonly weathertype?: string;
}

export class UpdateDiaryBillDto {
  @IsString()
  readonly title: string;
  @IsString()
  readonly desc: string;
  @IsString()
  readonly diarybillid: string;
}

// export class FindDiaryForRag {
//   @IsString()
//   readonly title: string;
// }



